import { boot } from 'quasar/wrappers'

import { LoadingBar } from 'quasar'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
export default boot(async ({ app }) => {
  LoadingBar.setDefaults({
    color: 'primary',
    size: '9px',
    position: 'bottom'
  })

  // set oss base url
  app.config.globalProperties.ossBase = '/oss/'
  app.config.globalProperties.imgBase = app.config.globalProperties.ossBase + 'geexin-certificates/'
  app.config.globalProperties.newsImgBase = app.config.globalProperties.ossBase + 'geexin-news-pics/'
})
